

package usercodedeployment;

import com.hazelcast.internal.util.StringUtil;
import com.hazelcast.query.extractor.ValueCollector;
import com.hazelcast.query.extractor.ValueExtractor;

public class CapitalizingFirstNameExtractor implements ValueExtractor<Person, Object> {
    @Override
    public void extract(Person target, Object argument, ValueCollector collector) {
        collector.addObject(StringUtil.upperCaseInternal(target.getName()));
    }
}
